package com.ruoyi.command.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 缺陷用例对象 defect_cases
 *
 * @author ruoyi
 * @date 2024-03-12
 */
public class DefectCases extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 缺陷ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 重现步骤 */
    @Excel(name = "重现步骤")
    private String stepsToReproduce;

    /** 优先级 */
    @Excel(name = "优先级")
    private Long priority;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 负责人 */
    @Excel(name = "负责人")
    private String assignee;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setStepsToReproduce(String stepsToReproduce)
    {
        this.stepsToReproduce = stepsToReproduce;
    }

    public String getStepsToReproduce()
    {
        return stepsToReproduce;
    }
    public void setPriority(Long priority)
    {
        this.priority = priority;
    }

    public Long getPriority()
    {
        return priority;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAssignee(String assignee)
    {
        this.assignee = assignee;
    }

    public String getAssignee()
    {
        return assignee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("stepsToReproduce", getStepsToReproduce())
                .append("priority", getPriority())
                .append("status", getStatus())
//                .append("createdAt", getCreatedAt())
                .append("assignee", getAssignee())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
